public class ONEN_TEST_RecordTypes {

// Written by Matthew Scholtz, copyright (c) 2007 ONE/Northwest
// This program is released under the GNU General Public License. http://www.gnu.org/licenses/

	static testMethod void TestRecordtypes() {
		
		//MS: temporarily commenting out test that look at hard-coded ID values
		//since this causes tests to fail when deploying
		
		ONEN_RecordTypes OppRecordTypes = new ONEN_RecordTypes('Opportunity');
		//check that gift recordtype exists
//		system.assertEquals('012300000000LvCAAU',OppRecordTypes.GetRecordTypeId('Gift'));
		//check that grant recordtype exists
//		system.assertEquals('012300000000UxqAAE',OppRecordTypes.GetRecordTypeId('Grant'));
		//non-existent record type should return null
		system.assertEquals(null,OppRecordTypes.GetRecordTypeId('Junk')); 
		//getting gift record type by id
//		system.assertEquals('Gift',OppRecordTypes.GetRecordTypeName('012300000000LvC')); 
		//getting gift record type naming suffix
		system.assertEquals('Gift',OppRecordTypes.GetOppNamingSuffix('Gift')); 
		//undefined rt naming suffix should return the rt name
		system.assertEquals('Grant',OppRecordTypes.GetOppNamingSuffix('Grant')); 		
		
	}
}